<definitions 
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  targetNamespace="Examples">
  
  <process id="executionListenersProcess" isExecutable="true">
  
    <extensionElements>
      <camunda:executionListener class="org.camunda.bpm.engine.test.bpmn.executionlistener.ExampleExecutionListenerOne" event="start" />
    </extensionElements>
    
    <startEvent id="theStart" />
    
    <sequenceFlow sourceRef="theStart" targetRef="firstTask" />
    
    <userTask id="firstTask" />
    <sequenceFlow sourceRef="firstTask" targetRef="secondTask">
       <extensionElements>
        <camunda:executionListener class="org.camunda.bpm.engine.test.bpmn.executionlistener.ExampleExecutionListenerTwo" />
      </extensionElements>
    </sequenceFlow>
    
    <userTask id="secondTask" >
      <extensionElements>
        <camunda:executionListener expression="${myPojo.myMethod(execution.eventName)}" event="end" />
      </extensionElements>
    </userTask>
    <sequenceFlow sourceRef="secondTask" targetRef="thirdTask" />
       
    <userTask id="thirdTask" />
    <sequenceFlow sourceRef="thirdTask" targetRef="theEnd" />

    <endEvent id="theEnd" />
    
  </process>
</definitions>